package com.example.roadeyeserver.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.roadeyeserver.entity.TobjTollStationInfo;
import com.example.roadeyeserver.mapper.TobjTollStationInfoMapper;
import com.example.roadeyeserver.service.TobjTollStationInfoService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.PostConstruct;
import javax.annotation.Resource;
import java.util.List;

@Service
@Slf4j
public class TobjTollStationInfoServiceImpl extends ServiceImpl<TobjTollStationInfoMapper, TobjTollStationInfo> implements TobjTollStationInfoService {

    @Resource
    private TobjTollStationInfoMapper tobjTollStationInfoMapper;

//    @PostConstruct
    public void createTable() {
        log.info("开始创建站点信息表tobj_toll_station_info");
        tobjTollStationInfoMapper.createTable();
        log.info("站点信息表tobj_toll_station_info创建完成");
        List<TobjTollStationInfo> list = this.list();
        log.info("站点信息表tobj_toll_station_info数据量:{},数据:{}", list.size(), list);
    }

}
